#ifndef STANDARDDATASOURCEMANAGER_H
#define STANDARDDATASOURCEMANAGER_H

#include <QObject>


#include "IDataSourceManager.h"

namespace Tanyatu
{
namespace DataSource
{
class TANYATU_CORE_EXPORT StandardDataSourceManager :
        public IDataSourceManager
{

public:
    explicit StandardDataSourceManager();
    
    bool init( QHash< QString, QString > &params );

    bool isDataSourceValid();

    QString dataSourceId();

    QString description();

    QString lastError();

    bool executeQuery(const QString queryId, const QString queryString );

    virtual ~StandardDataSourceManager() {

    }

private:

    QString m_error;

    bool m_valid;

protected:

    bool createSchema();

    virtual QHash< QString, QString > *getQueries();
};
}
}

#endif // STANDARDDATASOURCEMANAGER_H
